<%@ page contentType="text/html"
         import="oracle.portal.provider.v2.render.PortletRenderRequest,
                 oracle.portal.provider.v2.http.HttpCommonConstants,
                 oracle.portal.provider.v2.personalize.NameValuePersonalizationObject,
                 oracle.portal.provider.v2.render.PortletRendererUtil"%>
<%
    PortletRenderRequest pReq = (PortletRenderRequest)
            request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    NameValuePersonalizationObject data = (NameValuePersonalizationObject)
                                        PortletRendererUtil.getEditData(pReq);
    String hostServer =request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/applet/";
    String serverName = data.getString("host");
    if(serverName==null || serverName.length()==0)
    {
%>

Please customize your portlet first. Please supply the server to which you wish
to connect.
<%
        return;
    }
%>
<!-- load the applet -->
<applet height='500' width='100%' archive='<%=hostServer+"jta26.jar"%>'
        code="de.mud.jta.Applet">
        <param name="config" value='<%=hostServer+"telnet.conf"%>'/>
        <param name="Terminal.colorSet"
               value='<%=hostServer+"colorSet.conf"%>'/>
        <param name="Terminal.keyCodes"
               value='<%=hostServer+"keyCodes.conf"%>'/>
        <param name="Socket.host" value="<%= serverName %>"/>
</applet>